//
//  SessionManager.m
//  NetWorkManager
//
//  Created by FeiXiang on 16/12/8.
//  Copyright © 2016年 飞翔. All rights reserved.
//

#import "SessionManager.h"
#import "ConfigData.h"
@implementation SessionManager

+(AFHTTPSessionManager *)sharedManager
{
    AFHTTPSessionManager *manager =[ AFHTTPSessionManager manager];
    
    manager.requestSerializer =[ AFHTTPRequestSerializer serializer];
    
    //请求的时间戳
    manager.requestSerializer.timeoutInterval =TIMESTAMP;
    
    NSArray * acceptArray =@[@"application/json",@"text/json",@"text/html",@"text/xml",@"text/plain",@"text/javascript",@"image/*"];
    
    //网络请求可接受的类型
    manager.responseSerializer.acceptableContentTypes =[ NSSet setWithArray:acceptArray];
    
    return manager;
}
@end
